package me.firstapp.repository.bbs;

import java.util.List;

import me.firstapp.common.utils.Page;
import me.firstapp.module.bbs.BbsNotification;
import me.firstapp.repository.base.EntityRepository;

public interface BbsNotificationRepository extends EntityRepository<BbsNotification> {

	/**
	 * 获取用户未读bbs通知数量
	 * 
	 * @param memberId
	 */
	Long findMemberUnReadBbsNotificationCounts(Long memberId, Long apiClientId);

	/**
	 * 分页查询会员bbs通知
	 * 
	 * @param memberId
	 * @param isRead
	 */
	Page<BbsNotification> findMemberBbsNotificationPage(Integer pageNo, Integer pageSize, Long memberId,
			Integer isRead, Long apiClientId);

	List<BbsNotification> findUnReadBbsNotificationListByMemberId(Long memberId, Long apiClientId);
}
